/*
 * @Description:
 * @Version: 1.0
 * @Author: wenbin
 * @Date: 2021-08-23 09:28:44
 * @LastEditors: wenbin
 * @LastEditTime: 2021-11-08 17:29:45
 * @FilePath: /vite-ts-vue3-test/src/common/plugin/filters.ts
 * Copyright (C) 2021 wenbin. All rights reserved.
 */

export const getImage = function (val: any) {
  if (val && val.indexOf('base64') !== -1) {
    return val;
  } else {
    return `/api/docCenter/download/${val}`;
  }
};
